package com.jxb.myshop.dao;

import com.jxb.myshop.entity.User;

import java.sql.SQLException;

public interface UserDao {
    User getUserByName(String username) throws SQLException;

    int insertUser(User u) throws SQLException;

    User getUserByEmailAndCode(String email, String code) throws SQLException;

    int changeUserStatus(int uid, int userIsActive) throws SQLException;
}
